package com.rally.calculator.operations;

import javax.swing.JTextField;

import com.rally.calculator.AbstractOperand;

public class Subtractor extends AbstractOperand {

	public Subtractor(JTextField textInput1, JTextField textInput2,
			JTextField result) {
		super(textInput1, textInput2, result);
	}

	@Override
	public int operation(int input1, int input2) {
		return input1 - input2;
	}

	@Override
	public double operation(double input1, double input2) {
		return input1 - input2;
	}

}
